namespace NewsReport.Entity.POCOModel
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("ArticleInfo")]
    public partial class ArticleInfo
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public ArticleInfo()
        {
            CollectInfo = new HashSet<CollectInfo>();
            OneComment = new HashSet<OneComment>();
        }

        [Key]
        public int AID { get; set; }

        [Required]
        [StringLength(80)]
        public string Atitle { get; set; }

        [Required]
        [StringLength(6000)]
        public string Acontent { get; set; }

        [Required]
        [StringLength(20)]
        public string AImgUrl { get; set; }

        [Required]
        [StringLength(40)]
        public string ALable { get; set; }

        public int LiulanNum { get; set; }

        public int Arlikenum { get; set; }

        public DateTime? ArTime { get; set; }

        public int ArState { get; set; }

        public int? PrID { get; set; }

        public int? TID { get; set; }

        public virtual Promulgator Promulgator { get; set; }

        public virtual ArticleType ArticleType { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<CollectInfo> CollectInfo { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<OneComment> OneComment { get; set; }
    }
}
